package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Customer;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CustomerDao {

    //获取分页数据
    List<Customer> getCustomerList(@Param("page") Integer page,@Param("rows") Integer rows,@Param("customerName") String customerName);

    //获取总条数
    Integer getCustomerTotal();

    //新增
    int save(Customer customer);

    //获取详情
    Customer getInfoById(String customerId);

    //修改
    int updateById(Customer customer);

    int deleteById(String customerId);

}

